/*
 * Title                       Menu System Class:Prospect
 * Description                 This program is Thomson's Door-to-Door System menu's Class
 * Author                      Thomson
 * Date 19 February            2017
 * Version History ----------- Version 1.0 19 February 2017
 * Version History ----------- Version 2.0 05 march 2017
  *Version History ----------- Version 3.5 12 march 2017
 */
package cn.wangsy.zhidao.p20170408;


public class Prospect {
	private String name;
	private String houseNumber;

	private String postcode;
	private String dateContacted;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHouseNumber() {
		return houseNumber;
	}

	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getDateContacted() {
		return dateContacted;
	}

	public void setDateContacted(String dateContacted) {
		this.dateContacted = dateContacted;
	}

	public void printProspect() {
      
		System.out.printf("%10s, %7s, %15s,%16s\n", this.name,
				this.houseNumber, this.postcode, this.dateContacted);
		System.out.println("");
	}

	@Override
	public String toString() {
		return getName() + "," + getHouseNumber() + "," + getPostcode() + ","
				+ getDateContacted();
	}
}
